import { gameState } from './state.js';

export const Enemy = {
    level: 1,
    maxHealth: 50,
    currentHealth: 50,
    attack: 5,
    remaining: 10,

    init(layer) {
        this.level = layer;
        this.maxHealth = 50 * Math.pow(1.2, layer - 1);
        this.attack = 5 * Math.pow(1.1, layer - 1);
        this.remaining = 10;
        this.currentHealth = this.maxHealth;
    },

    spawnNew() {
        this.currentHealth = this.maxHealth;
    }
};